class OperationDetail {
  int? total;
  int? current;
  List<OperationBean>? list;

  OperationDetail({this.total, this.current, this.list});

  OperationDetail.fromJson(Map<String, dynamic> json) {
    total = json['total'];
    current = json['current'];
    if (json['list'] != null) {
      list = <OperationBean>[];
      json['list'].forEach((v) {
        list!.add(OperationBean.fromJson(v));
      });
    }
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = Map<String, dynamic>();
    data['total'] = this.total;
    data['current'] = this.current;
    if (this.list != null) {
      data['list'] = this.list!.map((v) => v.toJson()).toList();
    }
    return data;
  }
}

class OperationBean {
  int? id;
  int? customerInfoId;
  String? customerName;
  String? phoneNumber;
  String? buildingAddress;
  String? address;
  String? repairBefore;
  String? repairIn;
  String? repairAfter;
  String? faultDescription;
  String? described;
  int? status;
  String? createDate;
  String? updateDate;
  String? createBy;
  String? createByName;
  String? updateBy;
  String? updateByName;

  OperationBean(
      {this.id,
        this.customerInfoId,
        this.customerName,
        this.phoneNumber,
        this.buildingAddress,
        this.address,
        this.repairBefore,
        this.repairIn,
        this.repairAfter,
        this.faultDescription,
        this.described,
        this.status,
        this.createDate,
        this.updateDate,
        this.createBy,
        this.createByName,
        this.updateBy,
        this.updateByName});

  OperationBean.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    customerInfoId = json['customerInfoId'];
    customerName = json['customerName'];
    phoneNumber = json['phoneNumber'];
    buildingAddress = json['buildingAddress'];
    address = json['address'];
    repairBefore = json['repairBefore'];
    repairIn = json['repairIn'];
    repairAfter = json['repairAfter'];
    faultDescription = json['faultDescription'];
    described = json['described'];
    status = json['status'];
    createDate = json['createDate'];
    updateDate = json['updateDate'];
    createBy = json['createBy'];
    createByName = json['createByName'];
    updateBy = json['updateBy'];
    updateByName = json['updateByName'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['customerInfoId'] = this.customerInfoId;
    data['customerName'] = this.customerName;
    data['phoneNumber'] = this.phoneNumber;
    data['buildingAddress'] = this.buildingAddress;
    data['address'] = this.address;
    data['repairBefore'] = this.repairBefore;
    data['repairIn'] = this.repairIn;
    data['repairAfter'] = this.repairAfter;
    data['faultDescription'] = this.faultDescription;
    data['described'] = this.described;
    data['status'] = this.status;
    data['createDate'] = this.createDate;
    data['updateDate'] = this.updateDate;
    data['createBy'] = this.createBy;
    data['createByName'] = this.createByName;
    data['updateBy'] = this.updateBy;
    data['updateByName'] = this.updateByName;
    return data;
  }
}
